using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace GoldenAgeHelper.globel
{
    public class Config
    {
        public static void SaveConfig(string text)
        {
            if (!Directory.Exists("log"))
            {
                Directory.CreateDirectory("log");
            }
            FileStream fs = new FileStream("log/" + DateTime.Now.ToString("yyyy-MM-dd") + ".log", FileMode.Append);
            StreamWriter write = new StreamWriter(fs);
            write.Write(text);
            write.WriteLine();
            write.WriteLine();

            write.Flush();
            write.Close();
            fs.Close();
        }
    }
}
